As per GSettings documentation, it is necessary to read a particular
key at least once before being able to connect to the corresponding
'changed::' signal.
Read the 'app-picker-layout' key before connecting to the changed
signal.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1428
_init() {
super._init();
+ this._updatingPages = false;
+ this._loadPages();
+
global.settings.connect('changed::app-picker-layout',
this._loadPages.bind(this));
- this._updatingPages = false;
- this._loadPages();
}
_loadPages() {